package com.czk.model.responsebilitychain.practice;

/**
 * @Author:ChenZhangKun
 * @Date: 2020/12/9 22:03
 */
public class Client {
    public static void main(String[] args) {
        // 创建请假单
        LeaveForm leaveForm=new LeaveForm(6,"czk","结婚");
        // 创建员工
        Employee employee=new Employee();
        employee.setName("czk");
        Manager manager =new Manager();
        manager.setName("nzq");
        Boss boss=new Boss();
        boss.setName("xjp");
        employee.setCommiter(manager);
        manager.setCommiter(boss);
        employee.commit(leaveForm);
    }
}
